package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 base_goods
 * 
 * @author ruoyi
 * @date 2025-01-25
 */
public class BaseGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自编码 */
    private String internalCode;

    /** 国际条码 */
    @Excel(name = "国际条码")
    private String barcode;

    /** 商品全称 */
    @Excel(name = "商品全称")
    private String fullName;

    /** 商品简称 */
    @Excel(name = "商品简称")
    private String simpleName;

    /** 助记码、拼音简码 */
    @Excel(name = "助记码、拼音简码")
    private String briefCode;

    /** 进价 */
    @Excel(name = "进价")
    private BigDecimal costPrice;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal sellPrice;

    /** 等值积分 */
    @Excel(name = "等值积分")
    private Integer equScore;

    /** 类别标签 */
    @Excel(name = "类别标签")
    private String classLabel;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inputDate;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    public void setInternalCode(String internalCode) 
    {
        this.internalCode = internalCode;
    }

    public String getInternalCode() 
    {
        return internalCode;
    }
    public void setBarcode(String barcode) 
    {
        this.barcode = barcode;
    }

    public String getBarcode() 
    {
        return barcode;
    }
    public void setFullName(String fullName) 
    {
        this.fullName = fullName;
    }

    public String getFullName() 
    {
        return fullName;
    }
    public void setSimpleName(String simpleName) 
    {
        this.simpleName = simpleName;
    }

    public String getSimpleName() 
    {
        return simpleName;
    }
    public void setBriefCode(String briefCode) 
    {
        this.briefCode = briefCode;
    }

    public String getBriefCode() 
    {
        return briefCode;
    }
    public void setCostPrice(BigDecimal costPrice) 
    {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostPrice() 
    {
        return costPrice;
    }
    public void setSellPrice(BigDecimal sellPrice) 
    {
        this.sellPrice = sellPrice;
    }

    public BigDecimal getSellPrice() 
    {
        return sellPrice;
    }
    public void setEquScore(Integer equScore) 
    {
        this.equScore = equScore;
    }

    public Integer getEquScore() 
    {
        return equScore;
    }
    public void setClassLabel(String classLabel) 
    {
        this.classLabel = classLabel;
    }

    public String getClassLabel() 
    {
        return classLabel;
    }
    public void setInputDate(Date inputDate) 
    {
        this.inputDate = inputDate;
    }

    public Date getInputDate() 
    {
        return inputDate;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("internalCode", getInternalCode())
            .append("barcode", getBarcode())
            .append("fullName", getFullName())
            .append("simpleName", getSimpleName())
            .append("briefCode", getBriefCode())
            .append("costPrice", getCostPrice())
            .append("sellPrice", getSellPrice())
            .append("equScore", getEquScore())
            .append("classLabel", getClassLabel())
            .append("inputDate", getInputDate())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .toString();
    }
}
